package com.example.fx.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.Goods
import com.example.fx.R
import com.example.fx.utils.GlideUtils

class GoodsSearchAdapter :BaseQuickAdapter<Goods,BaseViewHolder>(R.layout.item_goods_search){
    override fun convert(holder: BaseViewHolder, item: Goods) {
        GlideUtils.loadImage(context,item.image,holder.getView(R.id.search_iv))
        holder.setText(R.id.search_title,item.storeName)
        holder.setText(R.id.search_price,"￥${item.price}")
    }
}